package com.cqc.googleplay.fragment.home;

import com.cqc.googleplay.view.ContentPager;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class HomeFrag extends Fragment {
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		ContentPager contentPager = new ContentPager(getActivity()) {
			
			@Override
			public Object requestData() {
				
				return "cuicui";
			}
			
			@Override
			public View createSuccessView() {
				TextView textView = new TextView(getContext());
				textView.setText("successView");
				return textView;
			}
		};
		return contentPager;
	}
}
